import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger'

export class MetaHistoryChart {
  static ApiPropertyEnum = {}

  @ApiProperty({ description: 'ID', type: Number })
  id: number

  @ApiPropertyOptional({ description: '限制可选择的开始时间，不设置则无限制', type: Date })
  limitBeginTime?: Date

  @ApiPropertyOptional({ description: '限制可选的结束时间，不设置则无限制', type: Date })
  limitEndTime?: Date

  @ApiPropertyOptional({ description: '查询粒度配置，JSON字符串', type: String })
  queryGranularity?: string

  @ApiPropertyOptional({ description: '数据填充策略，JSON字符串', type: String })
  dataFillingStrategy?: string

  @ApiProperty({ description: '创建时间', type: Date })
  createTime: Date

  @ApiProperty({ description: '所属平台', type: String })
  platform: string
}
